/**
 * Project Name:fastPlat
 * File Name:SysLogController.java
 * Package Name:com.fast.cms.web.controller.admin
 * Date:2014年12月17日下午3:46:04
 * Copyright (c) 2014, lsflu@126.com All Rights Reserved.
 *
*/

package com.fast.cms.web.controller.system;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.fast.base.model.DataGridListModel;
import com.fast.base.db.page.PageView;
import com.fast.base.db.page.QueryResult;
import com.fast.base.web.BaseController;
import com.fast.cms.service.system.SysLogService;
import com.fast.cms.web.form.SystemLogForm;
import com.fast.user.model.admin.AdminUser;
import com.fast.user.model.admin.SysLog;

/**
 * ClassName:SysLogController <br/>
 * 用途: 系统日志控制输出            <br/>
 * 开发人员：lushuifa  http://lushuifa.iteye.com/
 * 邮箱:lsflu@126.com
 * @version  
 * @since    JDK 1.6
 * @see
 * Date:     2014年12月17日 下午3:46:04 <br/> 	 
 */
@Controller
@RequestMapping("/systemLog")
public class SysLogController extends BaseController{
	
	private Log log = LogFactory.getLog(SysLogController.class);

	
	@Resource(name="sysLogService")
	private SysLogService sysLogService;
	
	/**
	 * 分页获日志列表
	 * @param adminForm
	 * @return
	 */
	@ResponseBody
	@RequestMapping("/getSystemLogList.do")
	public Map<String,Object> getAdminListByPage(SystemLogForm systemLogForm) {
		PageView<SysLog> pageView = new PageView<SysLog>();
		try {
			pageView = this.sysLogService.getSystemListByPage(systemLogForm);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return pageView.toEasyUIMap();
	}
}

